Skip to content

[pull] main from tldraw:main#483

Merged
pull[bot] merged 3 commits intocode:mainfrom
tldraw:main
Apr 6, 2026
Merged

[pull] main from tldraw:main#483
pull[bot] merged 3 commits intocode:mainfrom
tldraw:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 6, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

steveruizok and others added 3 commits April 5, 2026 21:23
#8460)

The locked shapes documentation incorrectly stated that locked shapes
display a lock indicator when hovered. This is not the case. This PR
corrects the text to accurately describe the actual behavior: users can
right-click a locked shape to access the context menu, which shows an
unlock option.

### Change type

- [x] `bugfix`

### Test plan

- [ ] Read the updated documentation and confirm the description matches
actual locked shape behavior

### Release notes

- Fix incorrect documentation claiming locked shapes show a lock
indicator on hover

### Code changes

| Section       | LOC change |
| ------------- | ---------- |
| Documentation | +1 / -1    |
In order to keep the release notes current with recent SDK changes from
`main`, this PR adds 8 new entries to `next.mdx`: 2 improvements
(cmd+click style panel for one-off style changes, hide selection overlay
during nudge) and 6 bug fixes (dynamic size mode rendering at high zoom,
arrow edge cases, multiplayer index key crashes, camera state on
dispose).

No stale entries were removed — all existing entries have corresponding
commits on main.

### Change type

- [ ] `bugfix`
- [ ] `improvement`
- [ ] `feature`
- [ ] `api`
- [x] `other`

### Test plan

- [ ] Unit tests
- [ ] End to end tests

### Release notes

- Update release notes.
…#8466)

In order to fix spiky artifacts on draw-style geometric shapes caused by
a square random offset distribution, this PR replaces the independent
x/y offset sampling with a circular distribution using a unit vector and
sqrt-scaled magnitude.

The previous implementation sampled x and y offsets independently,
creating a square distribution where corners (both values at extremes)
produced visually jarring spikes. The new implementation generates a
random unit vector for direction and applies `sqrt()` to the random
magnitude for uniform area distribution within a circle, producing
smoother, more natural-looking hand-drawn paths.

<img width="1012" height="645" alt="image"
src="https://github.com/user-attachments/assets/f892a196-c43a-4eea-b765-a6d3ccb1dbd2"
/>

<img width="637" height="650" alt="image"
src="https://github.com/user-attachments/assets/4ec129be-9b2d-4848-bce3-a9df2337ffbe"
/>


Closes #7637

### Change type

- [x] `bugfix`

### Test plan

1. Create geo shapes (rectangle, ellipse, polygon, etc.) with the "draw"
style
2. Verify the shapes look natural without spiky artifacts at vertices
3. Compare with the previous rendering — shapes should look smoother
overall

- [x] Unit tests

### Release notes

- Fix spiky artifacts on draw-style geometric shapes by using a circular
random offset distribution instead of a square one.

### Code changes

| Section         | LOC change |
| --------------- | ---------- |
| Core code       | +11 / -3   |
| Tests           | +10 / -10  |
| Automated files | +18 snapshots updated |

---------

Co-authored-by: huppy-bot[bot] <128400622+huppy-bot[bot]@users.noreply.github.com>
@pull pull Bot locked and limited conversation to collaborators Apr 6, 2026
@pull pull Bot added the ⤵️ pull label Apr 6, 2026
@pull pull Bot had a problem deploying to bemo-canary April 6, 2026 03:13 Failure
@pull pull Bot merged commit 6a69803 into code:main Apr 6, 2026
3 of 6 checks passed
@pull pull Bot had a problem deploying to deploy-staging April 6, 2026 03:13 Error
@pull pull Bot had a problem deploying to vsce publish April 6, 2026 03:13 Failure
@pull pull Bot had a problem deploying to bemo-canary April 6, 2026 03:13 Failure
@pull pull Bot had a problem deploying to deploy-production April 6, 2026 03:13 Failure
@pull pull Bot had a problem deploying to deploy-staging April 6, 2026 03:13 Failure
@pull pull Bot had a problem deploying to deploy-production April 6, 2026 10:28 Failure
@pull pull Bot had a problem deploying to deploy-staging April 7, 2026 00:35 Failure
@pull pull Bot temporarily deployed to e2e-dotcom April 7, 2026 02:36 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant